import request from '/@/utils/request';

// 列表
export function FunctionInfoGetPagedList(params?: object) {
	return request({
		url: 'api/FunctionInfo/GetPagedList',
		params,
	});
}

// 新增
export function FunctionInfoCreate(data: any) {
	return request({
		url: 'api/FunctionInfo/Create',
		method: 'post',
		data,
	});
}
// 编辑
export function FunctionInfoUpdate(data: any, id: string) {
	return request({
		url: `api/FunctionInfo/Update/${id}`,
		method: 'put',
		data,
	});
}

// 删除
export function BatchDelete(data: any) {
	return request({
		url: 'api/FunctionInfo/BatchDelete',
		method: 'post',
		data,
	});
}

//  用户字段
export function UserfieldGetList() {
	return request({
		url: 'api/Userfield/GetList',
	});
}
